/*
 * @(#)paymentServiceImpl.java 2013-4-10 ����01:36:55 Order
 */
package com.dingtalk.dingbotmgr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dingtalk.dingbotmgr.dao.BaseDao;
import com.dingtalk.dingbotmgr.dao.PaymentDao;
import com.dingtalk.dingbotmgr.model.Payment;
import com.dingtalk.dingbotmgr.model.PaymentCategory;
import com.dingtalk.dingbotmgr.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * paymentServiceImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("paymentService")
public class PaymentServiceImpl extends BaseServiceImpl<Payment> implements PaymentService {

    @Resource(name = "paymentDao")
    private PaymentDao paymentDao;

    @Override
    protected BaseDao<Payment> getBaseDao() {
        return paymentDao;
    }

    @Override
    public List<Payment> listByPaymentCategory(PaymentCategory paymentCategory) {
        return paymentDao.listByPaymentCategory(paymentCategory);
    }
}
